<div id="quarter_end">
	<table>
		<tr>
			<th>Q1</th>
			<th>Q2</th>	
			<th>Q3</th>
			<th>Q4</th>
			<th>Total</th>
		</tr>
		<tr>
			<% if @current_quarter == "2nd"%>
				<td><%= @player_1_first_quarter_score %></td>
				<td> </td>
				<td> </td>
				<td> </td>	
				<td><%= @player_1_first_quarter_score + @player_1_second_quarter_score +
						@player_1_third_quarter_score + @player_1_fourth_quarter_score %></td>
			<% elsif @current_quarter == "3rd" %>
				<td><%= @player_1_first_quarter_score %></td>
				<td><%= @player_1_second_quarter_score %></td>
				<td> </td>
				<td> </td>
				<td><%= @player_1_first_quarter_score + @player_1_second_quarter_score +
						@player_1_third_quarter_score + @player_1_fourth_quarter_score %></td>
			<% elsif @current_quarter == "4th" %>
				<td><%= @player_1_first_quarter_score %></td>
				<td><%= @player_1_second_quarter_score %></td>
				<td><%= @player_1_third_quarter_score %></td>
				<td> </td>
				<td><%= @player_1_first_quarter_score + @player_1_second_quarter_score +
						@player_1_third_quarter_score + @player_1_fourth_quarter_score %></td>
			<% end %>
		</tr>
		<tr>
			<% if @current_quarter == "2nd"%>
				<td><%= @player_2_first_quarter_score %></td>
				<td> </td>
				<td> </td>
				<td> </td>
				<td><%= @player_2_first_quarter_score + @player_2_second_quarter_score +
						@player_2_third_quarter_score + @player_2_fourth_quarter_score %></td>
			<% elsif @current_quarter == "3rd" %>
				<td><%= @player_2_first_quarter_score %></td>
				<td><%= @player_2_second_quarter_score %></td>
				<td> </td>
				<td> </td>
				<td><%= @player_2_first_quarter_score + @player_2_second_quarter_score +
						@player_2_third_quarter_score + @player_2_fourth_quarter_score %></td>
			<% elsif @current_quarter == "4th" %>
				<td><%= @player_2_first_quarter_score %></td>
				<td><%= @player_2_second_quarter_score %></td>
				<td><%= @player_2_third_quarter_score %></td>
				<td> </td>
				<td><%= @player_2_first_quarter_score + @player_2_second_quarter_score +
						@player_2_third_quarter_score + @player_2_fourth_quarter_score %></td>
			<% end %>			
		</tr>
	</table>
<br \><br \><br \><br \>

<%= link_to "Start Quarter", :action => 'draw' %>